<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page
	import="cn.edu.nju.ws.sview.wyge.relations.adataset.overview.GetDotGraph"%>
<%@page import="java.io.IOException"%>
<%@page
	import="cn.edu.nju.ws.sview.wyge.relations.adataset.overview.PrintGraph"%>
<%@page import="java.util.Properties"%>
<link rel="stylesheet" type="text/css"
	href="/sview/css/relations/ds_overview.css">
<%
	Properties properties = new Properties();
	try {
		properties.load(PrintGraph.class.getClassLoader()
				.getResourceAsStream("conf.properties"));
	} catch (IOException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	String tmpDirectory = properties.getProperty("pic_tmp_directory");
	properties.clear();
	String ds_type = request.getParameter("ds_type");
	int ds_id = Integer.parseInt(request.getParameter("ds_id"));
%>
<input type="hidden" id="ds_type" value="<%=ds_type%>" />
<input type="hidden" id="ds_id" value="<%=ds_id%>" />
<input type="hidden" id="tmpDirectory" value="<%=tmpDirectory%>" />
<script type="text/javascript">
	$(document).ready(function() {
		var data = {};
		data["ds_type"] = $("#ds_type").val();
		data["ds_id"] = $("#ds_id").val();
		data["tmpDirectory"] = encodeURIComponent($("#tmpDirectory").val());
		data = JSON.stringify(data);
		data = ("get=" + encodeURIComponent(data));
		$.ajax({
			url : "datasetOverview",
			dataType : "html",
			data : data,
			type : "post",
			success : function(data) {
				$("#tabs-1 div").append(data);
			}
		});
	});
</script>
<span class="CD"> Class Diagram:</span>